.box {
    display: flex;
    flex-wrap: wrap;
    width: 250px;
    height: 250px;
    margin: 20px auto;
    border: 3px solid #000;
    background-color: #a6a6a6;
    box-sizing: content-box;
    user-select: none;

    .item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        font-size: 30px;
        font-weight: bold;
        box-sizing: border-box;
        background-color: #a6a6a6;
        border-top: 3px solid #fff;
        border-left: 3px solid #fff;
        border-right: 3px solid #808080;
        border-bottom: 3px solid #808080;

        &.color1 {
            color: #2c77f4;
        }

        &.color2 {
            color: #2cd6f4;
        }

        &.color3 {
            color: #2cf4ea;
        }

        &.color4 {
            color: #7cf42c;
        }

        &.color5 {
            color: #f4ed2c;
        }

        &.color6 {
            color: #f4d62c;
        }

        &.color7 {
            color: #f4792c;
        }

        &.color8 {
            color: #f4432c;
        }

        &.open {
            background-color: #a6a6a6;
            border: 1px solid #808080;
        }

        &.check {
            background-image: url('../../../../assets/images/flag.png');
            background-position: center;
        }

        &.mine {
            border: 1px solid red;
            background-image: url('../../../../assets/images/mine.png');
            background-position: center;
        }
    }
}